﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace xboxssbeatemup
{
    public enum AnimationState
    {
        Attacking,
        DrinkingAtBar,
        Invisible,
        Running,
        Standing,
        Swimming
    }
    public class AnimationStateHelper
    {
        public static AnimationState FromString(String str)
        {
            if (str == "Attacking")
                return AnimationState.Attacking;
            if (str == "DrinkingAtBar")
                return AnimationState.DrinkingAtBar;
            if (str == "Invisible")
                return AnimationState.Invisible;
            if (str == "Running")
                return AnimationState.Running;
            if (str == "Standing")
                return AnimationState.Standing;
            if (str == "Swimming")
                return AnimationState.Swimming;
            return AnimationState.Standing;
        }
    }
}
